<#compress>
    <#assign actionname>${(action=='create')?string('新建','编辑')}</#assign>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
    <h4 class="modal-title">${actionname}餐桌类型</h4>
</div>
<div class="modal-body">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" role="form">
                <input type="hidden" value="${diningCategory.brand!}" name="diningCategory.brand">
                <input type="hidden" value="${diningCategory.id!}" name="diningCategory.id">
                <div class="form-body">
                    <div class="form-group">
                        <label class="col-md-3 control-label">类型名称：</label>
                        <div class="col-md-9">
                            <input type="text" class="form-control" name="diningCategory.name" value="${diningCategory.name!}" placeholder="类型名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="min_seats">最小座位数：</label>
                        <div class="col-md-9">
                            <div id="min_spinner">
                                <div class="input-group" style="width:150px;">
                                    <div class="spinner-buttons input-group-btn">
                                        <button type="button" class="btn spinner-up blue">
                                            <i class="fa fa-plus"></i>
                                        </button>
                                    </div>
                                    <input type="text" class="spinner-input form-control" id="min_seats" name="diningCategory.min_seats" maxlength="2" data-value="${diningCategory.min_seats!}" readonly>
                                    <div class="spinner-buttons input-group-btn">
                                        <button type="button" class="btn spinner-down red">
                                            <i class="fa fa-minus"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-3 control-label" for="max_seats">最大座位数：</label>
                        <div class="col-md-9">
                            <div id="max_spinner">
                                <div class="input-group" style="width:150px;">
                                    <div class="spinner-buttons input-group-btn">
                                        <button type="button" class="btn spinner-up blue">
                                            <i class="fa fa-plus"></i>
                                        </button>
                                    </div>
                                    <input type="text" class="spinner-input form-control" id="max_seats" name="diningCategory.max_seats" maxlength="2" data-value="${diningCategory.max_seats!}" readonly>
                                    <div class="spinner-buttons input-group-btn">
                                        <button type="button" class="btn spinner-down red">
                                            <i class="fa fa-minus"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-md-3 control-label" for="remark">备注：</label>
                        <div class="col-md-9">
                            <textarea class="form-control" id="remark" name="diningCategory.remark">${diningCategory.remark!}</textarea>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn blue" id="save">保存</button>
    <button type="button" class="btn default" data-dismiss="modal">取消</button>
</div>
</#compress>